﻿// ***********************************************************************
// Assembly         : STX.Domain
// Author           : seven.x
// Created          : 12-26-2013
//
// Last Modified By : seven.x
// Last Modified On : 12-26-2013
// ***********************************************************************
// <copyright file="TABBlackList.cs" company="驰创数码">
//     Copyright (c) 驰创数码. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************
using System;

namespace STX.Domain
{
    /// <summary>
    /// Class 黑名单.
    /// </summary>
    public class TabBlackList: BaseEntity
    {

        /// <summary>
        /// Enum BlockScope
        /// </summary>
        [Flags]
        public enum BlockScope
        {
            /// <summary>
            /// The front
            /// </summary>
            [Field(Name="仅前台")]
            Front = 1,

            /// <summary>
            /// The admin
            /// </summary>
            [Field(Name="仅后台")]
            Admin = 2,

            /// <summary>
            /// All
            /// </summary>
            [Field(Name = "全站")]
            All   = 4
        }

        /// <summary>
        /// Gets or sets the ip address.
        /// </summary>
        /// <value>The ip address.</value>
        [Field(Name = "IP地址")]
        public string IpAddress { get; set; }


        /// <summary>
        /// Gets or sets the block scope value.
        /// </summary>
        /// <value>The block scope value.</value>
        [Field(Name = "屏蔽范围")]
        public int BlockScopeValue { get; set; }

        /// <summary>
        /// Gets or sets the start time.
        /// </summary>
        /// <value>The start time.</value>
        [Field(Name = "开始时间")]
        public DateTime StartTime { get; set; }

        /// <summary>
        /// Gets or sets the end time.
        /// </summary>
        /// <value>The end time.</value>
        [Field(Name = "结束时间")]
        public DateTime EndTime { get; set; }
    }
}
